.class public Lcom/ninesky/browser/BrowserActivity;
.super Landroid/app/Activity;


# static fields
.field private static b:Landroid/widget/FrameLayout$LayoutParams;

.field private static c:Landroid/widget/FrameLayout$LayoutParams;

.field private static y:Ljava/util/Set;


# instance fields
.field private A:Landroid/webkit/HttpAuthHandler;

.field private B:Landroid/os/Handler;

.field private C:Lcom/ninesky/browser/ay;

.field private D:Landroid/webkit/ValueCallback;

.field a:Z

.field private d:Landroid/os/PowerManager$WakeLock;

.field private e:Landroid/os/Handler;

.field private f:Z

.field private g:Z

.field private h:Landroid/app/AlertDialog;

.field private i:Landroid/content/IntentFilter;

.field private j:Landroid/content/BroadcastReceiver;

.field private k:Landroid/widget/FrameLayout;

.field private l:Landroid/widget/LinearLayout;

.field private m:Landroid/widget/LinearLayout;

.field private n:Landroid/widget/LinearLayout;

.field private o:Landroid/widget/LinearLayout;

.field private p:Landroid/widget/FrameLayout;

.field private q:Landroid/widget/ProgressBar;

.field private r:Landroid/view/View;

.field private s:Landroid/widget/FrameLayout;

.field private t:Landroid/webkit/WebChromeClient$CustomViewCallback;

.field private u:Landroid/widget/FrameLayout;

.field private v:Landroid/graphics/Bitmap;

.field private w:Landroid/view/View;

.field private x:Landroid/content/BroadcastReceiver;

.field private z:Landroid/app/AlertDialog;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/4 v2, -0x1

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    sput-object v0, Lcom/ninesky/browser/BrowserActivity;->b:Landroid/widget/FrameLayout$LayoutParams;

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v1, 0x11

    invoke-direct {v0, v2, v2, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    sput-object v0, Lcom/ninesky/browser/BrowserActivity;->c:Landroid/widget/FrameLayout$LayoutParams;

    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Lcom/ninesky/browser/BrowserActivity;->y:Ljava/util/Set;

    const-string v1, "com.google.android.youtube"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    new-instance v0, Lcom/ninesky/browser/bf;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/bf;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    new-instance v0, Lcom/ninesky/browser/bm;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/bm;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->B:Landroid/os/Handler;

    new-instance v0, Lcom/ninesky/browser/ay;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/ay;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->C:Lcom/ninesky/browser/ay;

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/BrowserActivity;)Landroid/os/PowerManager$WakeLock;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    return-object v0
.end method

.method private a(Landroid/content/Intent;)Lcom/ninesky/browser/bp;
    .locals 6

    const/4 v5, 0x0

    const-string v0, ""

    if-eqz p1, :cond_8

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    const-string v2, "android.intent.action.VIEW"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "com.ninesky.action.VIEW"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    :cond_0
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :cond_1
    if-eqz v0, :cond_2

    const-string v1, "content:"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/content/Intent;->resolveType(Landroid/content/ContentResolver;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_8

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "?"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    move-object v0, v5

    :goto_0
    new-instance v2, Lcom/ninesky/browser/bp;

    invoke-direct {v2, v1, v0}, Lcom/ninesky/browser/bp;-><init>(Ljava/lang/String;Ljava/util/Map;)V

    return-object v2

    :cond_2
    if-eqz v0, :cond_8

    const-string v1, "http"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_8

    const-string v1, "com.android.browser.headers"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_8

    invoke-virtual {v1}, Landroid/os/Bundle;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_8

    invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_3

    move-object v1, v0

    move-object v0, v3

    goto :goto_0

    :cond_3
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    invoke-virtual {v1, p0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v3, p0, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    :cond_4
    const-string v2, "android.intent.action.SEARCH"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string v2, "android.intent.action.MEDIA_SEARCH"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string v2, "android.intent.action.WEB_SEARCH"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_8

    :cond_5
    const-string v0, "query"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_8

    invoke-static {v0}, Lcom/ninesky/a/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "&source=android-browser-suggest&"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_8

    const-string v2, "app_data"

    invoke-virtual {p1, v2}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v2

    if-eqz v2, :cond_7

    const-string v3, "source"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_6

    const-string v2, "unknown"

    :cond_6
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "&source=android-"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "&"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    move-object v0, v5

    goto/16 :goto_0

    :cond_7
    move-object v2, v5

    goto :goto_2

    :cond_8
    move-object v1, v0

    move-object v0, v5

    goto/16 :goto_0
.end method

.method public static a()V
    .locals 2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/TabControl;->a(Z)Lcom/ninesky/browser/n;

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->c()V

    :cond_0
    return-void
.end method

.method private a(Landroid/webkit/WebView;)V
    .locals 4

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "embedTitleViewToWebView"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_5

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    instance-of v1, v1, Landroid/webkit/WebView;

    if-eqz v1, :cond_5

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eq v0, p1, :cond_0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-eq v0, v1, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_1
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v1, -0x1

    const/high16 v2, 0x40a0

    sget v3, Lcom/ninesky/browser/ed;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0x50

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    iget-object v2, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v1, v2, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_2
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eq v0, p1, :cond_4

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    if-eqz v0, :cond_3

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_3
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->setEmbeddedTitleBar(Landroid/view/View;)V

    :cond_4
    return-void

    :cond_5
    check-cast v0, Landroid/view/ViewGroup;

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    goto :goto_0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;I)V
    .locals 3

    if-eqz p1, :cond_0

    const-string v0, ""

    if-ne p1, v0, :cond_3

    :cond_0
    const-string v0, "about:dashboard"

    :goto_0
    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz p2, :cond_1

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_5

    :cond_1
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/TabControl;->i()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    if-le p3, v1, :cond_4

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/n;->b(Ljava/lang/String;)V

    :cond_2
    :goto_1
    return-void

    :cond_3
    move-object v0, p1

    goto :goto_0

    :cond_4
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1, p3}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/n;->b(Ljava/lang/String;)V

    goto :goto_1

    :cond_5
    if-eqz p2, :cond_2

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->x()V

    goto :goto_1
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p0, p1, p2, p3}, Landroid/webkit/WebView;->setHttpAuthUsernamePassword(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method static synthetic a(Ljava/lang/String;Z)V
    .locals 5

    const/16 v4, 0xa

    const/16 v3, 0x8

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_1

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v1, v3, :cond_0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-gt v1, v4, :cond_0

    invoke-virtual {v0, p0}, Landroid/webkit/WebView;->addPackageName(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v1, v3, :cond_0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-gt v1, v4, :cond_0

    invoke-virtual {v0, p0}, Landroid/webkit/WebView;->removePackageName(Ljava/lang/String;)V

    goto :goto_0
.end method

.method static synthetic a(Ljava/util/Set;)V
    .locals 3

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x8

    if-lt v1, v2, :cond_0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0xa

    if-gt v1, v2, :cond_0

    invoke-virtual {v0, p0}, Landroid/webkit/WebView;->addPackageNames(Ljava/util/Set;)V

    :cond_0
    return-void
.end method

.method static synthetic b(Lcom/ninesky/browser/BrowserActivity;)Landroid/widget/ProgressBar;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    return-object v0
.end method

.method private b(Ljava/lang/String;)Ljava/lang/String;
    .locals 5

    const/4 v4, 0x1

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const/16 v1, 0x20

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_2

    move v1, v4

    :goto_0
    sget-object v2, Lcom/ninesky/a/a;->a:Ljava/util/regex/Pattern;

    invoke-virtual {v2, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/regex/Matcher;->matches()Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-virtual {v2, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_0
    if-eqz v1, :cond_1

    const-string v1, " "

    const-string v2, "%20"

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    :cond_1
    :goto_1
    return-object v0

    :cond_2
    const/4 v1, 0x0

    goto :goto_0

    :cond_3
    if-nez v1, :cond_4

    sget-object v1, Lcom/ninesky/a/e;->a:Ljava/util/regex/Pattern;

    invoke-virtual {v1, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/regex/Matcher;->matches()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-static {v0}, Landroid/webkit/URLUtil;->guessUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_4
    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/setting/a;->g()Z

    move-result v2

    if-nez v2, :cond_5

    invoke-virtual {v1}, Lcom/ninesky/browser/setting/a;->h()Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/ninesky/browser/provider/e;->f(Landroid/content/ContentResolver;Ljava/lang/String;)V

    :cond_5
    const-string v1, "http://www.google.com/m?q=%s"

    const-string v2, "%s"

    invoke-static {v0, v1, v2}, Landroid/webkit/URLUtil;->composeSearchUrl(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1
.end method

.method private b(Landroid/webkit/WebView;)V
    .locals 2

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "detachTitleViewFromWebView"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->setEmbeddedTitleBar(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->p:Landroid/widget/FrameLayout;

    if-eq v0, v1, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->p:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    :cond_1
    return-void
.end method

.method private b(Landroid/content/Intent;)Z
    .locals 4

    const/4 v3, 0x0

    if-nez p1, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    const-string v2, "android.speech.action.VOICE_SEARCH_RESULTS"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    move v0, v3

    goto :goto_0

    :cond_1
    const-string v2, "android.intent.action.VIEW"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v1

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_2
    :goto_1
    const-string v1, "app_data"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;

    const-string v1, "intent_extra_data_key"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    if-nez v0, :cond_5

    move v0, v3

    goto :goto_0

    :cond_3
    const-string v2, "android.intent.action.SEARCH"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string v2, "android.intent.action.MEDIA_SEARCH"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string v2, "android.intent.action.WEB_SEARCH"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    :cond_4
    const-string v0, "query"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_5
    invoke-static {v0}, Lcom/ninesky/a/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lcom/ninesky/a/e;->a:Ljava/util/regex/Pattern;

    invoke-virtual {v1, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/regex/Matcher;->matches()Z

    move-result v1

    if-nez v1, :cond_6

    sget-object v1, Lcom/ninesky/a/a;->a:Ljava/util/regex/Pattern;

    invoke-virtual {v1, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/regex/Matcher;->matches()Z

    move-result v1

    if-eqz v1, :cond_7

    :cond_6
    move v0, v3

    goto :goto_0

    :cond_7
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    new-instance v2, Lcom/ninesky/browser/bi;

    invoke-direct {v2, p0, v1, v0}, Lcom/ninesky/browser/bi;-><init>(Lcom/ninesky/browser/BrowserActivity;Landroid/content/ContentResolver;Ljava/lang/String;)V

    new-array v0, v3, [Ljava/lang/Void;

    invoke-virtual {v2, v0}, Lcom/ninesky/browser/bi;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->b()Lcom/ninesky/browser/b/a;

    move-result-object v0

    if-nez v0, :cond_8

    move v0, v3

    goto/16 :goto_0

    :cond_8
    const/4 v0, 0x1

    goto/16 :goto_0
.end method

.method static synthetic c(Lcom/ninesky/browser/BrowserActivity;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->B:Landroid/os/Handler;

    return-object v0
.end method

.method public static c()V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->o()V

    return-void
.end method

.method public static d()V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->n()V

    return-void
.end method

.method static synthetic d(Lcom/ninesky/browser/BrowserActivity;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    return-void
.end method

.method static synthetic e(Lcom/ninesky/browser/BrowserActivity;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->A:Landroid/webkit/HttpAuthHandler;

    return-void
.end method

.method public static q()V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->f()V

    return-void
.end method

.method static synthetic r()Ljava/util/Set;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/BrowserActivity;->y:Ljava/util/Set;

    return-object v0
.end method

.method private s()V
    .locals 4

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->f()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f07005c

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;

    :cond_0
    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->g()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->length()I

    move-result v2

    if-lez v2, :cond_1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_1
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f07005d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;

    :cond_2
    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->e()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->length()I

    move-result v0

    if-lez v0, :cond_3

    const-string v0, "\n"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_3
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f07005e

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;

    :cond_4
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->length()I

    move-result v0

    if-lez v0, :cond_5

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_5
    return-void
.end method

.method private t()Z
    .locals 4

    const/4 v3, 0x1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->s()Z

    move-result v1

    iget-boolean v2, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    if-eqz v2, :cond_1

    if-nez v1, :cond_1

    invoke-static {}, Landroid/webkit/CookieSyncManager;->getInstance()Landroid/webkit/CookieSyncManager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/CookieSyncManager;->stopSync()V

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    if-ne v1, v3, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/webkit/WebView;

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Landroid/webkit/WebView;->pauseTimers()V

    :cond_0
    move v0, v3

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private u()V
    .locals 4

    invoke-static {}, Landroid/webkit/WebIconDatabase;->getInstance()Landroid/webkit/WebIconDatabase;

    move-result-object v0

    const-string v1, "icons"

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Lcom/ninesky/browser/BrowserActivity;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/webkit/WebIconDatabase;->open(Ljava/lang/String;)V

    const/4 v1, 0x0

    :try_start_0
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    invoke-static {v2}, Lcom/ninesky/browser/provider/e;->a(Landroid/content/ContentResolver;)Landroid/database/Cursor;

    move-result-object v1

    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v2, "url"

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    :cond_0
    invoke-interface {v1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/webkit/WebIconDatabase;->retainIconForPageUrl(Ljava/lang/String;)V

    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v3

    if-nez v3, :cond_0

    :cond_1
    if-eqz v1, :cond_2

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    :cond_2
    :goto_0
    return-void

    :catch_0
    move-exception v0

    :try_start_1
    const-string v2, "NSBrowser.BrowserActivity"

    const-string v3, "retainIconsOnStartup"

    invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v1, :cond_2

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    goto :goto_0

    :catchall_0
    move-exception v0

    if-eqz v1, :cond_3

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    :cond_3
    throw v0
.end method

.method private v()V
    .locals 3

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->k:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->k:Landroid/widget/FrameLayout;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->l:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->f()V

    :cond_0
    return-void
.end method

.method private w()V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->h:Landroid/app/AlertDialog;

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f070135

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070136

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070005

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->h:Landroid/app/AlertDialog;

    :cond_0
    return-void
.end method

.method private x()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->B:Landroid/os/Handler;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->C:Lcom/ninesky/browser/ay;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setProgress(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    return-void
.end method


# virtual methods
.method public final a(I)V
    .locals 5

    const/16 v4, 0x400

    const/16 v1, 0x200

    const/4 v3, 0x0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    if-ne p1, v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_1

    move v2, v3

    :goto_0
    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-eqz v0, :cond_8

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/Window;->addFlags(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V

    if-eqz v2, :cond_4

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->v()V

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_0
    :goto_1
    return-void

    :cond_1
    const/4 v0, 0x1

    move v2, v0

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_3

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    instance-of v1, v1, Landroid/webkit/WebView;

    if-eqz v1, :cond_3

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    if-eq v0, v1, :cond_0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    :cond_4
    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_5
    :goto_2
    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->l:Landroid/widget/LinearLayout;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->l:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->removeView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0x50

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->k:Landroid/widget/FrameLayout;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->i()V

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->f()V

    goto/16 :goto_1

    :cond_6
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_7

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    instance-of v1, v1, Landroid/webkit/WebView;

    if-eqz v1, :cond_7

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_2

    :cond_7
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    if-eq v0, v1, :cond_5

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_2

    :cond_8
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/Window;->clearFlags(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v3, v1}, Landroid/view/Window;->setFlags(II)V

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->v()V

    if-eqz v2, :cond_c

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    if-nez v0, :cond_a

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_9
    :goto_3
    if-eqz v2, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    goto/16 :goto_1

    :cond_a
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_b

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    instance-of v1, v1, Landroid/webkit/WebView;

    if-eqz v1, :cond_b

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_3

    :cond_b
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    if-eq v0, v1, :cond_9

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_3

    :cond_c
    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-nez v1, :cond_d

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/WebView;)V

    goto :goto_3

    :cond_d
    iget-object v3, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v1, v3, :cond_e

    iget-object v3, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v3}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v3

    instance-of v3, v3, Landroid/webkit/WebView;

    if-eqz v3, :cond_e

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/webkit/WebView;

    if-eq v1, v0, :cond_9

    invoke-direct {p0, v1}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->removeAllViews()V

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/WebView;)V

    goto/16 :goto_3

    :cond_e
    check-cast v1, Landroid/view/ViewGroup;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/WebView;)V

    goto/16 :goto_3
.end method

.method public final a(II)V
    .locals 2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    if-ne p1, v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, p2}, Landroid/widget/ProgressBar;->setProgress(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getProgress()I

    move-result v0

    if-lt p2, v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->B:Landroid/os/Handler;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->C:Lcom/ninesky/browser/ay;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    invoke-virtual {p0, p2}, Lcom/ninesky/browser/BrowserActivity;->d(I)V

    :cond_0
    return-void
.end method

.method final a(Landroid/view/View;Landroid/webkit/WebChromeClient$CustomViewCallback;)V
    .locals 3

    const/16 v2, 0x200

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    if-eqz v0, :cond_0

    invoke-interface {p2}, Landroid/webkit/WebChromeClient$CustomViewCallback;->onCustomViewHidden()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->s:Landroid/widget/FrameLayout;

    sget-object v1, Lcom/ninesky/browser/BrowserActivity;->c:Landroid/widget/FrameLayout$LayoutParams;

    invoke-virtual {v0, p1, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iput-object p1, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    iput-object p2, p0, Lcom/ninesky/browser/BrowserActivity;->t:Landroid/webkit/WebChromeClient$CustomViewCallback;

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->k:Landroid/widget/FrameLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->s:Landroid/widget/FrameLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->s:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->bringToFront()V

    goto :goto_0
.end method

.method final a(Landroid/webkit/HttpAuthHandler;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 8

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030011

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    if-eqz p5, :cond_0

    const v0, 0x7f0c002d

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    invoke-virtual {v0, p5}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz p6, :cond_1

    const v0, 0x7f0c002f

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p5

    check-cast p5, Landroid/widget/EditText;

    invoke-virtual {p5, p6}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    if-nez p4, :cond_3

    const v0, 0x7f07007f

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "%s1"

    invoke-virtual {v0, v1, p2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "%s2"

    invoke-virtual {v0, v1, p3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    iput-object p1, p0, Lcom/ninesky/browser/BrowserActivity;->A:Landroid/webkit/HttpAuthHandler;

    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v0}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1080027

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v6

    const v7, 0x7f070082

    new-instance v0, Lcom/ninesky/browser/bl;

    move-object v1, p0

    move-object v3, p2

    move-object v4, p3

    move-object v5, p1

    invoke-direct/range {v0 .. v5}, Lcom/ninesky/browser/bl;-><init>(Lcom/ninesky/browser/BrowserActivity;Landroid/view/View;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/HttpAuthHandler;)V

    invoke-virtual {v6, v7, v0}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070006

    new-instance v3, Lcom/ninesky/browser/t;

    invoke-direct {v3, p0, p1}, Lcom/ninesky/browser/t;-><init>(Lcom/ninesky/browser/BrowserActivity;Landroid/webkit/HttpAuthHandler;)V

    invoke-virtual {v0, v1, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    new-instance v1, Lcom/ninesky/browser/u;

    invoke-direct {v1, p0, p1}, Lcom/ninesky/browser/u;-><init>(Lcom/ninesky/browser/BrowserActivity;Landroid/webkit/HttpAuthHandler;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/4 v3, 0x4

    invoke-virtual {v1, v3}, Landroid/view/Window;->setSoftInputMode(I)V

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    if-eqz p7, :cond_2

    invoke-virtual {v0, p7}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->requestFocus()Z

    :goto_1
    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    return-void

    :cond_2
    const v1, 0x7f0c002d

    invoke-virtual {v2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->requestFocus()Z

    goto :goto_1

    :cond_3
    move-object v0, p4

    goto :goto_0
.end method

.method final a(Landroid/webkit/ValueCallback;)V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iput-object p1, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.OPENABLE"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "*/*"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const v1, 0x7f070004

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/BrowserActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {p0, v0, v1}, Lcom/ninesky/browser/BrowserActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0
.end method

.method public final a(Ljava/lang/String;)V
    .locals 2

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->c()Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v1

    invoke-direct {p0, p1, v0, v1}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method final a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V
    .locals 10

    invoke-static {p1, p3, p4}, Landroid/webkit/URLUtil;->guessFileName(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v0

    const-string v1, "mounted"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    new-instance v2, Lcom/ninesky/browser/bk;

    invoke-direct {v2, p0, v0, v8}, Lcom/ninesky/browser/bk;-><init>(Lcom/ninesky/browser/BrowserActivity;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_0
    return-void

    :cond_0
    :try_start_0
    new-instance v0, Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    invoke-static {v1}, Landroid/webkit/URLUtil;->decode([B)[B

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>([B)V

    new-instance v4, Landroid/net/WebAddress;

    invoke-direct {v4, v0}, Landroid/net/WebAddress;-><init>(Ljava/lang/String;)V

    const/4 v0, 0x0

    const/4 v1, 0x0

    iget-object v2, v4, Landroid/net/WebAddress;->mPath:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_5

    const/16 v3, 0x23

    invoke-virtual {v2, v3}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v3

    const/4 v5, -0x1

    if-eq v3, v5, :cond_4

    add-int/lit8 v0, v3, 0x1

    invoke-virtual {v2, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    const/4 v5, 0x0

    invoke-virtual {v2, v5, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    move-object v9, v2

    move-object v2, v0

    move-object v0, v9

    :goto_1
    const/16 v3, 0x3f

    invoke-virtual {v0, v3}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v3

    const/4 v5, -0x1

    if-eq v3, v5, :cond_3

    add-int/lit8 v1, v3, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const/4 v5, 0x0

    invoke-virtual {v0, v5, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    move-object v5, v0

    move-object v6, v1

    move-object v7, v2

    :goto_2
    new-instance v0, Ljava/net/URI;

    iget-object v1, v4, Landroid/net/WebAddress;->mScheme:Ljava/lang/String;

    iget-object v2, v4, Landroid/net/WebAddress;->mAuthInfo:Ljava/lang/String;

    iget-object v3, v4, Landroid/net/WebAddress;->mHost:Ljava/lang/String;

    iget v4, v4, Landroid/net/WebAddress;->mPort:I

    invoke-direct/range {v0 .. v7}, Ljava/net/URI;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/webkit/CookieManager;->getCookie(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    const-string v3, "uri"

    invoke-virtual {v0}, Ljava/net/URI;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "cookiedata"

    invoke-virtual {v2, v3, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "useragent"

    invoke-virtual {v2, v1, p2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "notificationpackage"

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v1, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "notificationclass"

    const-class v3, Lcom/ninesky/browser/DownloadActivity;

    invoke-virtual {v3}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v1, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "visibility"

    const/4 v3, 0x1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v1, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    const-string v1, "mimetype"

    invoke-virtual {v2, v1, p4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "hint"

    invoke-virtual {v2, v1, v8}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "description"

    invoke-virtual {v0}, Ljava/net/URI;->getHost()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v1, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v0, 0x0

    cmp-long v0, p5, v0

    if-lez v0, :cond_1

    const-string v0, "total_bytes"

    invoke-static/range {p5 .. p6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v2, v0, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    :cond_1
    if-nez p4, :cond_2

    new-instance v0, Lcom/ninesky/browser/x;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/x;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    const/4 v1, 0x1

    new-array v1, v1, [Landroid/content/ContentValues;

    const/4 v3, 0x0

    aput-object v2, v1, v3

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/x;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto/16 :goto_0

    :catch_0
    move-exception v0

    const-string v1, "NSBrowser.BrowserActivity"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Could not parse url for download: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_0

    :cond_2
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Lcom/ninesky/browser/provider/downloads/e;->a:Landroid/net/Uri;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->l()V

    goto/16 :goto_0

    :cond_3
    move-object v5, v0

    move-object v6, v1

    move-object v7, v2

    goto/16 :goto_2

    :cond_4
    move-object v9, v2

    move-object v2, v0

    move-object v0, v9

    goto/16 :goto_1

    :cond_5
    move-object v5, v2

    move-object v6, v1

    move-object v7, v0

    goto/16 :goto_2
.end method

.method public final a(Z)V
    .locals 4

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->g:Z

    if-ne p1, v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v1, 0x0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v2

    if-eqz v2, :cond_3

    invoke-virtual {v2}, Lcom/ninesky/browser/n;->d()I

    move-result v0

    const/4 v3, 0x1

    if-ne v0, v3, :cond_3

    invoke-virtual {v2}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eqz v0, :cond_3

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->setNetworkAvailable(Z)V

    invoke-virtual {v2}, Lcom/ninesky/browser/n;->s()Z

    move-result v0

    :goto_1
    iput-boolean p1, p0, Lcom/ninesky/browser/BrowserActivity;->g:Z

    iget-boolean v1, p0, Lcom/ninesky/browser/BrowserActivity;->g:Z

    if-eqz v1, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->h:Landroid/app/AlertDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->h:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->h:Landroid/app/AlertDialog;

    goto :goto_0

    :cond_2
    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->w()V

    goto :goto_0

    :cond_3
    move v0, v1

    goto :goto_1
.end method

.method public final b(I)V
    .locals 3

    const/4 v2, 0x0

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->g:Z

    if-nez v0, :cond_0

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->w()V

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    if-ne p1, v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->B:Landroid/os/Handler;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->C:Lcom/ninesky/browser/ay;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->B:Landroid/os/Handler;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->C:Lcom/ninesky/browser/ay;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/webkit/WebView;

    invoke-virtual {p0, v2, v2}, Landroid/webkit/WebView;->scrollTo(II)V

    :cond_1
    return-void
.end method

.method public final b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V
    .locals 6

    const/4 v2, 0x0

    if-eqz p3, :cond_0

    const/4 v1, 0x1

    const-string v3, "attachment"

    const/16 v5, 0xa

    move-object v0, p3

    move v4, v2

    invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z

    move-result v0

    if-nez v0, :cond_2

    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1, p4}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/high16 v2, 0x1

    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v1

    if-eqz v1, :cond_2

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getComponentName()Landroid/content/ComponentName;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v4, v4, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-virtual {v2}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v2

    iget-object v1, v1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v1, v1, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    :cond_1
    :try_start_0
    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    :cond_2
    invoke-virtual/range {p0 .. p6}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method public final b(Z)V
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(I)V

    :cond_0
    return-void
.end method

.method public final b()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    return v0
.end method

.method public final c(I)V
    .locals 6

    const/4 v5, 0x0

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->t()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    const/16 v1, 0x6b

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    if-ne p1, v0, :cond_2

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->x()V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/view/br;->getHeight()I

    move-result v1

    iget-boolean v2, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-eqz v2, :cond_3

    move v2, v5

    :goto_0
    invoke-virtual {v0}, Landroid/webkit/WebView;->getContentHeight()I

    move-result v3

    int-to-float v3, v3

    sget v4, Lcom/ninesky/browser/ed;->a:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v4

    iget v4, v4, Landroid/util/DisplayMetrics;->heightPixels:I

    sub-int/2addr v4, v1

    sub-int v2, v4, v2

    if-le v3, v2, :cond_4

    invoke-virtual {v0, v5, v1}, Landroid/webkit/WebView;->scrollTo(II)V

    :cond_1
    :goto_1
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->g()V

    :cond_2
    return-void

    :cond_3
    const/high16 v2, 0x41c8

    sget v3, Lcom/ninesky/browser/ed;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    goto :goto_0

    :cond_4
    invoke-virtual {v0, v5, v5}, Landroid/webkit/WebView;->scrollTo(II)V

    goto :goto_1
.end method

.method public final c(Z)V
    .locals 4

    const/4 v3, 0x1

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/ninesky/browser/BookmarkHistoryActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "disable_new_window"

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v2

    invoke-virtual {v2}, Lcom/ninesky/browser/TabControl;->d()Z

    move-result v2

    if-eqz v2, :cond_1

    const/4 v2, 0x0

    :goto_0
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    if-eqz p1, :cond_0

    sget-object v1, Lcom/ninesky/browser/BookmarkHistoryActivity;->b:Ljava/lang/String;

    sget-object v2, Lcom/ninesky/browser/BookmarkHistoryActivity;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_0
    invoke-virtual {p0, v0, v3}, Lcom/ninesky/browser/BrowserActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void

    :cond_1
    move v2, v3

    goto :goto_0
.end method

.method public final d(I)V
    .locals 2

    if-ltz p1, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getMax()I

    move-result v0

    if-ge p1, v0, :cond_1

    move v0, p1

    :goto_0
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v1, v0}, Landroid/widget/ProgressBar;->setProgress(I)V

    const/16 v1, 0x64

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    :cond_0
    return-void

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final e()V
    .locals 1

    const-string v0, "about:dashboard"

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->c()V

    return-void
.end method

.method public final e(I)V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    if-ne v0, p1, :cond_0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/BrowserActivity;->f(I)V

    :cond_0
    return-void
.end method

.method final f()V
    .locals 4

    const/16 v3, 0x8

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->s:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->s:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->t:Landroid/webkit/WebChromeClient$CustomViewCallback;

    invoke-interface {v0}, Landroid/webkit/WebChromeClient$CustomViewCallback;->onCustomViewHidden()V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x200

    invoke-virtual {v0, v2, v1}, Landroid/view/Window;->setFlags(II)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->k:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_0
.end method

.method public final f(I)V
    .locals 3

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->x()V

    goto :goto_0

    :cond_2
    invoke-virtual {v0}, Lcom/ninesky/browser/n;->e()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->c()I

    move-result v0

    if-lez v0, :cond_3

    const/16 v1, 0x64

    if-lt v0, v1, :cond_4

    :cond_3
    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->x()V

    goto :goto_0

    :cond_4
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    invoke-virtual {p0, p1, v0}, Lcom/ninesky/browser/BrowserActivity;->a(II)V

    goto :goto_0
.end method

.method public final g()V
    .locals 3

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "===============exitFloatViewForMenuKey KEYCODE_MENU"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x0

    :goto_0
    if-nez v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iget-boolean v2, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-eqz v2, :cond_2

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    :cond_0
    :goto_1
    return-void

    :cond_1
    const/4 v0, 0x1

    goto :goto_0

    :cond_2
    if-nez v1, :cond_3

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/WebView;)V

    goto :goto_1

    :cond_3
    iget-object v2, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v1, v2, :cond_4

    iget-object v2, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v2}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    instance-of v2, v2, Landroid/webkit/WebView;

    if-eqz v2, :cond_4

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/webkit/WebView;

    if-eq v1, v0, :cond_0

    invoke-direct {p0, v1}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->removeAllViews()V

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/WebView;)V

    goto :goto_1

    :cond_4
    check-cast v1, Landroid/view/ViewGroup;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/WebView;)V

    goto :goto_1
.end method

.method public final g(I)V
    .locals 4

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/ninesky/browser/BookmarkHistoryActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "android.intent.action.PICK"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v2, "displayorder"

    invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v2, "favorite"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    const/4 v1, 0x7

    invoke-virtual {p0, v0, v1}, Lcom/ninesky/browser/BrowserActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method public final h(I)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/BrowserActivity;->g(I)V

    return-void
.end method

.method public final h()Z
    .locals 2

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    if-ne v0, v1, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final i()V
    .locals 3

    const/4 v2, 0x0

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "===============onKeyDown isFullScreenWebView KEYCODE_MENU"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_3

    move v0, v2

    :goto_0
    if-nez v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/br;->setVisibility(I)V

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_0
    :goto_1
    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->p:Landroid/widget/FrameLayout;

    if-eq v0, v1, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->p:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    :cond_2
    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-eqz v0, :cond_6

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->g()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/bj;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/bj;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_2
    return-void

    :cond_3
    const/4 v0, 0x1

    goto :goto_0

    :cond_4
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    if-ne v0, v1, :cond_5

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    instance-of v1, v1, Landroid/webkit/WebView;

    if-eqz v1, :cond_5

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/webkit/WebView;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    :cond_5
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    if-eq v0, v1, :cond_0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    :cond_6
    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->d()V

    goto :goto_2
.end method

.method public final j()V
    .locals 4

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/ninesky/browser/AddBookmarkActivity;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "url"

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->i()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "title"

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->q()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "touch_icon_url"

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->r()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "thumbnail"

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->h()Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    const/4 v0, 0x2

    invoke-virtual {p0, v1, v0}, Lcom/ninesky/browser/BrowserActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method final k()V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/ninesky/browser/DownloadActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method final l()V
    .locals 2

    const v0, 0x7f070065

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method public final m()V
    .locals 1

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->moveTaskToBack(Z)Z

    return-void
.end method

.method public final n()Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v2

    :goto_0
    iget-boolean v1, p0, Lcom/ninesky/browser/BrowserActivity;->f:Z

    if-eqz v1, :cond_1

    if-nez v0, :cond_1

    move v0, v3

    :goto_1
    return v0

    :cond_0
    move v0, v3

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_1
.end method

.method final o()Landroid/graphics/Bitmap;
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->v:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f020016

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->v:Landroid/graphics/Bitmap;

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->v:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 4

    const/4 v2, 0x0

    const/4 v1, -0x1

    packed-switch p1, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    if-ne p2, v1, :cond_0

    if-eqz p3, :cond_0

    invoke-virtual {p3}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_1

    const-string v2, "new_window"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-static {}, Lcom/ninesky/browser/BrowserActivity;->a()V

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    const/4 v0, 0x1

    if-eq p2, v0, :cond_0

    goto :goto_0

    :pswitch_3
    if-ne p2, v1, :cond_0

    if-eqz p3, :cond_0

    invoke-virtual {p3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "url"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    if-eqz v0, :cond_0

    if-eqz p3, :cond_2

    if-eq p2, v1, :cond_3

    :cond_2
    move-object v0, v2

    :goto_1
    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    invoke-interface {v1, v0}, Landroid/webkit/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    iput-object v2, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    goto :goto_0

    :cond_3
    invoke-virtual {p3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    goto :goto_1

    :pswitch_5
    if-ne p2, v1, :cond_0

    if-eqz p3, :cond_0

    invoke-virtual {p3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "displayorder"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    if-ltz v1, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "id"

    invoke-virtual {v0, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    invoke-static {v2, v1, v0}, Lcom/ninesky/browser/provider/b;->a(Landroid/content/ContentResolver;II)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_4
        :pswitch_0
        :pswitch_3
        :pswitch_5
    .end packed-switch
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 8

    const/4 v2, 0x0

    invoke-super {p0, p1}, Landroid/app/Activity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    const v1, 0x102017d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    const v1, 0x7f0c002d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v5

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    const v1, 0x7f0c002f

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v6

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getId()I

    move-result v7

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->z:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->A:Landroid/webkit/HttpAuthHandler;

    move-object v0, p0

    move-object v3, v2

    invoke-virtual/range {v0 .. v7}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/webkit/HttpAuthHandler;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    :cond_1
    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->j()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6

    const/4 v3, -0x1

    const/4 v5, 0x0

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x3

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->setDefaultKeyMode(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->finish()V

    :goto_0
    return-void

    :cond_0
    const v0, 0x7f030013

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->setContentView(I)V

    const v0, 0x7f0c003b

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->s:Landroid/widget/FrameLayout;

    const v0, 0x7f0c0034

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->k:Landroid/widget/FrameLayout;

    const v0, 0x7f0c0035

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->l:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0039

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->p:Landroid/widget/FrameLayout;

    const v0, 0x7f0c003a

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->q:Landroid/widget/ProgressBar;

    const v0, 0x7f0c0036

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0038

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->n:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0037

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->o:Landroid/widget/LinearLayout;

    invoke-static {p0}, Lcom/ninesky/browser/view/c;->a(Lcom/ninesky/browser/BrowserActivity;)V

    invoke-static {p0}, Lcom/ninesky/browser/view/br;->a(Landroid/content/Context;)Lcom/ninesky/browser/view/br;

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/view/br;->getHeight()I

    move-result v1

    invoke-direct {v0, v3, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, p0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->u:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->m:Landroid/widget/LinearLayout;

    invoke-static {p0}, Lcom/ninesky/browser/view/br;->a(Landroid/content/Context;)Lcom/ninesky/browser/view/br;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {p0}, Lcom/ninesky/browser/TabControl;->a(Landroid/content/Context;)Lcom/ninesky/browser/TabControl;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->o:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x2

    invoke-direct {v0, v3, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-static {p0}, Lcom/ninesky/browser/view/ToolBar;->a(Landroid/content/Context;)Lcom/ninesky/browser/view/ToolBar;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v1

    invoke-virtual {v1, v5, v5, v5, v5}, Lcom/ninesky/browser/view/ToolBar;->setPadding(IIII)V

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->l:Landroid/widget/LinearLayout;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/TabControl;->a(Ljava/util/Observer;)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/TabControl;->a(Ljava/util/Observer;)V

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->u()V

    const-string v0, "connectivity"

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->isAvailable()Z

    move-result v0

    iput-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->g:Z

    :cond_1
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->i:Landroid/content/IntentFilter;

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->i:Landroid/content/IntentFilter;

    const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    new-instance v0, Lcom/ninesky/browser/bn;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/bn;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->j:Landroid/content/BroadcastReceiver;

    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.PACKAGE_ADDED"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "package"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    new-instance v1, Lcom/ninesky/browser/bo;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/bo;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    iput-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->x:Landroid/content/BroadcastReceiver;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->x:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/ninesky/browser/BrowserActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->a(Landroid/os/Bundle;)Z

    move-result v0

    if-nez v0, :cond_3

    new-instance v0, Lcom/ninesky/browser/bg;

    invoke-direct {v0}, Lcom/ninesky/browser/bg;-><init>()V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/TabControl;->b()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/bg;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeSessionCookie()V

    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/content/Intent;)Lcom/ninesky/browser/bp;

    move-result-object v2

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v3

    const-string v4, "android.intent.action.VIEW"

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-virtual {v0}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    :cond_2
    invoke-static {}, Lcom/ninesky/browser/BrowserActivity;->a()V

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->f()Landroid/graphics/Bitmap;

    iget-object v0, v2, Lcom/ninesky/browser/bp;->a:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    if-eqz v1, :cond_3

    const-string v0, "browser.initialZoomLevel"

    invoke-virtual {v1, v0, v5}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    if-lez v0, :cond_3

    const/16 v1, 0x3e8

    if-gt v0, v1, :cond_3

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/n;->a(I)V

    :cond_3
    const-string v0, "power"

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    const/4 v1, 0x1

    const-string v2, "NineskyBrowser"

    invoke-virtual {v0, v1, v2}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    new-instance v0, Lcom/ninesky/browser/v;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/v;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    new-array v1, v5, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->s()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/bq;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/bq;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    invoke-static {p0}, Lcom/ninesky/browser/cs;->a(Landroid/content/Context;)Lcom/ninesky/browser/cs;

    invoke-static {}, Lcom/ninesky/browser/cs;->b()Lcom/ninesky/browser/cs;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/cs;->c()V

    goto/16 :goto_0
.end method

.method protected onDestroy()V
    .locals 2

    const/4 v1, 0x0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->e()V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->f()V

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/view/c;->d()V

    invoke-static {}, Lcom/ninesky/browser/view/br;->a()V

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->a()V

    invoke-static {}, Landroid/webkit/WebIconDatabase;->getInstance()Landroid/webkit/WebIconDatabase;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebIconDatabase;->close()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    invoke-interface {v0, v1}, Landroid/webkit/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    iput-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->D:Landroid/webkit/ValueCallback;

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->x:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    invoke-static {}, Lcom/ninesky/browser/cs;->a()V

    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    const/4 v1, 0x1

    sparse-switch p1, :sswitch_data_0

    :cond_0
    :goto_0
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    :goto_1
    return v0

    :sswitch_0
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p2}, Landroid/view/KeyEvent;->startTracking()V

    move v0, v1

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    if-nez v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->isLongPress()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/BrowserActivity;->moveTaskToBack(Z)Z

    move v0, v1

    goto :goto_1

    :sswitch_1
    invoke-virtual {p0}, Lcom/ninesky/browser/BrowserActivity;->i()V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x4 -> :sswitch_0
        0x52 -> :sswitch_1
    .end sparse-switch
.end method

.method public onKeyUp(ILandroid/view/KeyEvent;)Z
    .locals 3

    const/4 v2, 0x1

    packed-switch p1, :pswitch_data_0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyUp(ILandroid/view/KeyEvent;)Z

    move-result v0

    :goto_0
    return v0

    :pswitch_0
    invoke-virtual {p2}, Landroid/view/KeyEvent;->isTracking()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->isCanceled()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->e()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/webkit/WebView;

    invoke-virtual {p0}, Landroid/webkit/WebView;->getWebChromeClient()Landroid/webkit/WebChromeClient;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebChromeClient;->onHideCustomView()V

    :cond_1
    :goto_1
    move v0, v2

    goto :goto_0

    :cond_2
    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->e()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/br;->d()V

    goto :goto_1

    :cond_3
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-nez v0, :cond_4

    invoke-virtual {p0, v2}, Lcom/ninesky/browser/BrowserActivity;->moveTaskToBack(Z)Z

    goto :goto_1

    :cond_4
    invoke-virtual {v0}, Lcom/ninesky/browser/n;->j()Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->n()V

    goto :goto_1

    :cond_5
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/TabControl;->i()I

    move-result v1

    if-ne v1, v2, :cond_6

    invoke-virtual {p0, v2}, Lcom/ninesky/browser/BrowserActivity;->moveTaskToBack(Z)Z

    goto :goto_1

    :cond_6
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/TabControl;->c(Lcom/ninesky/browser/n;)V

    goto :goto_1

    :pswitch_data_0
    .packed-switch 0x4
        :pswitch_0
    .end packed-switch
.end method

.method public onLowMemory()V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->j()V

    invoke-super {p0}, Landroid/app/Activity;->onLowMemory()V

    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 4

    const/4 v3, -0x1

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Landroid/content/Intent;->getFlags()I

    move-result v0

    const-string v2, "android.intent.action.MAIN"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const/high16 v2, 0x10

    and-int/2addr v0, v2

    if-eqz v0, :cond_2

    :cond_0
    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->s()V

    :cond_1
    :goto_0
    return-void

    :cond_2
    :try_start_0
    const-string v0, "search"

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/SearchManager;

    invoke-virtual {v0}, Landroid/app/SearchManager;->stopSearch()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    const-string v0, "com.ninesky.action.VIEW"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string v0, "android.intent.action.VIEW"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string v0, "android.intent.action.SEARCH"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string v0, "android.intent.action.MEDIA_SEARCH"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string v0, "android.intent.action.WEB_SEARCH"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_3
    invoke-direct {p0, p1}, Lcom/ninesky/browser/BrowserActivity;->a(Landroid/content/Intent;)Lcom/ninesky/browser/bp;

    move-result-object v0

    iget-object v1, v0, Lcom/ninesky/browser/bp;->b:Landroid/content/Intent;

    if-nez v1, :cond_6

    iget-object v1, v0, Lcom/ninesky/browser/bp;->a:Ljava/lang/String;

    if-eqz v1, :cond_4

    iget-object v1, v0, Lcom/ninesky/browser/bp;->a:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_6

    :cond_4
    const/4 v1, 0x1

    :goto_2
    if-eqz v1, :cond_5

    new-instance v0, Lcom/ninesky/browser/bp;

    const-string v1, "about:dashboard"

    invoke-direct {v0, v1}, Lcom/ninesky/browser/bp;-><init>(Ljava/lang/String;)V

    :cond_5
    invoke-direct {p0, p1}, Lcom/ninesky/browser/BrowserActivity;->b(Landroid/content/Intent;)Z

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_8

    const-string v2, "index"

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v1

    :goto_3
    if-ne v1, v3, :cond_7

    iget-object v0, v0, Lcom/ninesky/browser/bp;->a:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_6
    const/4 v1, 0x0

    goto :goto_2

    :cond_7
    iget-object v0, v0, Lcom/ninesky/browser/bp;->a:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-direct {p0, v0, v2, v1}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;Ljava/lang/String;I)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1

    :cond_8
    move v1, v3

    goto :goto_3
.end method

.method protected onPause()V
    .locals 4

    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    if-eqz v0, :cond_0

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "BrowserActivity is already paused."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->l()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    if-ltz v0, :cond_1

    invoke-direct {p0}, Lcom/ninesky/browser/BrowserActivity;->t()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->acquire()V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    const/16 v2, 0x6b

    invoke-virtual {v1, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    const-wide/32 v2, 0x493e0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->j:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/BrowserActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    invoke-static {}, Landroid/webkit/WebView;->disablePlatformNotifications()V

    invoke-static {p0}, Lcom/mobclick/android/c;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->r:Landroid/view/View;

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->e()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/webkit/WebView;

    invoke-virtual {p0}, Landroid/webkit/WebView;->getWebChromeClient()Landroid/webkit/WebChromeClient;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebChromeClient;->onHideCustomView()V

    :cond_2
    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->e()V

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ToolBar;->c()V

    goto :goto_0
.end method

.method protected onResume()V
    .locals 3

    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    iget-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    if-nez v0, :cond_0

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "BrowserActivity is already resumed."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->m()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->s()Z

    move-result v1

    iget-boolean v2, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    if-nez v2, :cond_1

    if-eqz v1, :cond_2

    :cond_1
    iget-boolean v2, p0, Lcom/ninesky/browser/BrowserActivity;->a:Z

    if-eqz v2, :cond_3

    if-eqz v1, :cond_3

    :cond_2
    invoke-static {}, Landroid/webkit/CookieSyncManager;->getInstance()Landroid/webkit/CookieSyncManager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/CookieSyncManager;->startSync()V

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_3

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Landroid/webkit/WebView;->resumeTimers()V

    :cond_3
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->e:Landroid/os/Handler;

    const/16 v1, 0x6b

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->d:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V

    :cond_4
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->j:Landroid/content/BroadcastReceiver;

    iget-object v1, p0, Lcom/ninesky/browser/BrowserActivity;->i:Landroid/content/IntentFilter;

    invoke-virtual {p0, v0, v1}, Lcom/ninesky/browser/BrowserActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    invoke-static {}, Landroid/webkit/WebView;->enablePlatformNotifications()V

    invoke-static {}, Lcom/ninesky/browser/user/g;->c()Lcom/ninesky/browser/user/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->d()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->e()V

    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->f()V

    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->g()V

    :goto_1
    invoke-static {p0}, Lcom/mobclick/android/c;->b(Landroid/content/Context;)V

    goto :goto_0

    :cond_5
    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->h()V

    goto :goto_1
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2

    const-string v0, "NSBrowser.BrowserActivity"

    const-string v1, "========================onSaveInstanceState"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/TabControl;->b(Landroid/os/Bundle;)V

    invoke-super {p0, p1}, Landroid/app/Activity;->onSaveInstanceState(Landroid/os/Bundle;)V

    return-void
.end method

.method final p()Landroid/view/View;
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->w:Landroid/view/View;

    if-nez v0, :cond_0

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030030

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->w:Landroid/view/View;

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/BrowserActivity;->w:Landroid/view/View;

    return-object v0
.end method

.method public setRequestedOrientation(I)V
    .locals 1

    sget v0, Lcom/ninesky/browser/BrowserApp;->b:I

    if-eq p1, v0, :cond_0

    sput p1, Lcom/ninesky/browser/BrowserApp;->b:I

    invoke-super {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :cond_0
    return-void
.end method
